/***********************************************************
 *  File_Name  : XJBase64.h
 *  File_Path   : 
 *  File_Encode : UTF8
 *  Description : BASE64编码,解码
 *  
 *  OS : Linux, UNIX,Windows,Other
 *  LastVersion  : 20111118
 *      
 *  Author      : LiXiujie(李秀杰)
 *  Date        : 2011-11-18
 *  Version     : 20111118
 *  Description : 
 *                
 *  Edit Author : 
 *  Edit Date   : 
 *  Version     : 
 *  Description :
 *                
 ***********************************************************/
#ifndef XJBASE64_H_
#define XJBASE64_H_
#include <cstring>

namespace XJUtilClass{

class XJBase64 {
public:
	XJBase64();
	virtual ~XJBase64();
public:
	static bool Encode(const unsigned char *szPlaintext, const unsigned long nPlaintextLen,
			char *szCiphertext, unsigned long &nCiphertextMaxSizeOrLen);
	static bool Decode(const char *szCiphertext, const unsigned long nCiphertextLen,
			unsigned char *szPlaintext, unsigned long &nPlaintextMaxSizeOrLen);
};

} /* namespace XJUtilClass */

#endif /* XJBASE64_H_ */
